home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13866 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  851 b 

  1. Path: crl.crl.com!not-for-mail
  2. From: bobfry@crl.com (Robert Fry)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: rand() source
  5. Date: 10 Apr 1996 09:38:27 -0700
  6. Organization: CRL Dialup Internet Access
  7. Message-ID: <4kgo63$i3i@crl.crl.com>
  8. References: <4kf88n$j5e@news.ualr.edu>
  9. NNTP-Posting-Host: crl.com
  10.  
  11. luchini@hybrid.ualr.edu (Dr. Chris Luchini) writes:
  12.  
  13. >does anyone have the source for the ran() or rand() functions?
  14. >I could really use it ASAP!
  15.  
  16. For which compiler? Each compiler vendor is free to implement this in any 
  17. way they feel fit, and many implementations are different. If what you 
  18. need is an algorithm for generating random numbers, check out Knuth's 
  19. "Art of Computer Programming" volume on Numerical methods. There have 
  20. also been many articles on the subject, and I've heard the book 
  21. "Numerical Recipes in C" recommended.
  22.  
  23. Good luck.
  24.   Bob
  25.